* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    animation: fadeIn 2s ease-in-out;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #f8f8f8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

p {
    font-size: 1.5rem;
    color: #f0f0f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 控制面板样式 */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    color: white;
    min-width: 300px;
}

.frequency-control {
    margin-bottom: 20px;
}

.text-control {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-input-group {
    display: flex;
    gap: 10px;
}

.text-input-group input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
}

.text-input-group button,
.text-templates button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.text-input-group button:hover,
.text-templates button:hover {
    background: #45a049;
}

.text-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-group label {
    font-size: 14px;
    opacity: 0.9;
}

.option-group input,
.option-group select {
    padding: 5px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
}

.text-templates {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.text-templates button {
    background: #2196F3;
}

.text-templates button:hover {
    background: #1976D2;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .controls {
        width: 90%;
        min-width: auto;
    }

    .text-options {
        grid-template-columns: 1fr;
    }
}

/* 文字动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scatter {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
